#pragma once

#include "MathTypes.h"

inline int fastrand() 
{
	static int g_seed = 256;
	g_seed = (214013*g_seed+2531011); 
	return (g_seed>>16)&0x7FFF; 
}

inline int roundftoi(float d)
{
  return floor(d + 0.5f);
}

inline void addTriangle(VEC4ARRAY &vVertex, 
	const VECTOR_4& a, 
	const VECTOR_4& b, 
	const VECTOR_4& c)
{
	vVertex.push_back(a);
	vVertex.push_back(b);
	vVertex.push_back(c);
}

